package com.homework;

import java.sql.SQLOutput;

/**
 * @author :  DongZheng Wang
 * @PROJECT_NAME: java泛型
 * @date :  2022-10-25 16:18
 **/
public class One<A> {
    private A a;
    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    @Override
    public String toString() {
        return "One{" +
                "a=" + a +
                '}';
    }
}
class Ones{
    public static void main(String[] args) {

        One<String> objectOne = new One<>();
        objectOne.setA("wang");
        System.out.println(objectOne);
    }
}
